﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using Paperless_Library;


namespace Paperless_WCF.ServiceContracts
{
    /// <summary>
    /// 
    /// </summary>
    [ServiceContract]
    public interface IServiceUserContract
    {
        #region Metodos Usuario
        /// <summary>
        /// 
        /// </summary>
        /// <param name="nombreUsuario"></param>
        /// <param name="contrasena"></param>
        /// <returns></returns>
        [OperationContract]
        bool LogOn(byte[] userId, string userName, byte[] password);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="nombreUsuario"></param>
        /// <returns></returns>
        [OperationContract]
        User[] GetUser(String userName);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="nombreUsuario"></param>
        /// <returns></returns>
        [OperationContract]
        History[] GetUserHistory(byte[] userId, string userName);
        #endregion
    }
}
